package reduce.fz.com.reduce.activity;

import android.content.Intent;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import reduce.fz.com.reduce.R;

public class WitSuggestionEditActivity extends BaseToolBarActivity {
    private EditText mEtComment;
    private TextView tvSave;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_wit_suggestion_edit);
        setToolbarTitle("编辑内容");
        tvSave=setRightBtn("保存");
        initWidget();
    }

    @Override
    public void initWidget() {
        tvSave.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent();
                intent.putExtra("pictext", mEtComment.getText().toString());
                setResult(RESULT_OK, intent);
                finish();
            }
        });
    }

    @Override
    public void initListener() {

    }


}
